<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我们 - 健身工作室</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/mobile-nav.css">
    <link rel="stylesheet" href="css/quick-nav.css">
    <style>
        .contact-section {
            padding: 4rem 5%;
            margin-top: 80px;
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .contact-info {
            background-color: #fff;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .contact-info h3 {
            color: #2ecc71;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        .contact-info p {
            margin-bottom: 1rem;
            color: #666;
        }

        .contact-form {
            background-color: #fff;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-family: inherit;
        }

        .form-group textarea {
            height: 150px;
            resize: vertical;
        }

        .submit-btn {
            background-color: #2ecc71;
            color: #fff;
            padding: 1rem 2rem;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .submit-btn:hover {
            background-color: #27ae60;
        }

        .map-container {
            height: 300px;
            border-radius: 10px;
            overflow: hidden;
            margin-top: 2rem;
        }

        @media (max-width: 768px) {
            .contact-container {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <header>
        <nav class="main-nav">
            <div class="logo">
                <a href="index.html">十年全勤健身</a>
            </div>
            <ul class="nav-links">
                <li><a href="index.html">首页</a></li>
                <li><a href="courses.html">课程介绍</a></li>
                <li><a href="trainers.html">教练团队</a></li>
                <li><a href="facilities.html">器材设施</a></li>
                <li><a href="news.html">健身资讯</a></li>
                <li><a href="shop.html">在线商城</a></li>
                <li><a href="member.html">会员中心</a></li>
                <li><a href="events.html">活动专区</a></li>
                <li><a href="about.html">关于我们</a></li>
                <li><a href="contact.html">联系我们</a></li>
            </ul>
        </nav>
    </header>

    <main>
        <section class="contact-section">
            <div class="contact-container">
                <div class="contact-info">
                    <h3>联系方式</h3>
                    <p><strong>地址：</strong>济南市章丘区健身大街88号</p>
                    <p><strong>电话：</strong>010-88888888</p>
                    <p><strong>邮箱：</strong>info@fitness-studio.com</p>
                    <p><strong>营业时间：</strong></p>
                    <p>周一至周五：6:00 - 22:00</p>
                    <p>周六至周日：8:00 - 20:00</p>
                </div>
                <div class="contact-form">
                    <h3>发送消息</h3>
                    <form id="contactForm">
                        <div class="form-group">
                            <label for="name">姓名</label>
                            <input type="text" id="name" name="name" required>
                        </div>
                        <div class="form-group">
                            <label for="email">邮箱</label>
                            <input type="email" id="email" name="email" required>
                        </div>
                        <div class="form-group">
                            <label for="phone">电话</label>
                            <input type="tel" id="phone" name="phone">
                        </div>
                        <div class="form-group">
                            <label for="message">留言</label>
                            <textarea id="message" name="message" required></textarea>
                        </div>
                        <button type="submit" class="submit-btn">发送消息</button>
                    </form>
                </div>
            </div>
            <div class="map-container">
                <iframe
                    src="https://maps.google.com/maps?width=100%25&height=300&hl=en&q=1%20Grafton%20Street,%20Dublin,%20Ireland&t=&z=14&ie=UTF8&iwloc=B&output=embed"
                    width="100%" height="100%" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div>
        </section>
    </main>

    <footer>
        <div class="footer-content">
            <div class="footer-section">
                <h4>联系我们</h4>
                <p>地址：济南市章丘区健身大街88号</p>
                <p>电话：400-XXX-XXXX</p>
                <p>邮箱：info@qiangjian.com</p>
            </div>
            <div class="footer-section">
                <h4>关注我们</h4>
                <div class="social-links">
                    <a href="#" class="social-link">微信</a>
                    <a href="#" class="social-link">微博</a>
                    <a href="#" class="social-link">抖音</a>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; 2025 十年全勤健身 版权所有</p>
        </div>
    </footer>

    <nav class="quick-nav">
        <ul class="quick-nav-links">
            <li><a href="index.html">首页</a></li>
            <li><a href="courses.html">课程介绍</a></li>
            <li><a href="trainers.html">教练团队</a></li>
            <li><a href="facilities.html">器材设施</a></li>
            <li><a href="news.html">健身资讯</a></li>
            <li><a href="shop.html">在线商城</a></li>
            <li><a href="member.html">会员中心</a></li>
            <li><a href="events.html">活动专区</a></li>
            <li><a href="about.html">关于我们</a></li>
            <li><a href="contact.html">联系我们</a></li>
        </ul>
    </nav>

    <script src="js/mobile-nav.js"></script>
    <script src="js/nav-highlight.js"></script>
    <style>
        /* 成功提示样式 */
        .success-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(46, 204, 113, 0.95);
            color: white;
            padding: 20px 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2000;
        }

        .success-message.show {
            opacity: 1;
        }

        .success-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .success-text {
            font-size: 18px;
            font-weight: 500;
        }

        /* 消息飘过动画 */
        .floating-message {
            position: fixed;
            top: 50%;
            right: -100%;
            transform: translateY(-50%);
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            padding: 15px 30px;
            border-radius: 30px;
            font-size: 16px;
            white-space: nowrap;
            animation: floatMessage 3s ease-in-out forwards;
            z-index: 1999;
        }

        @keyframes floatMessage {
            0% {
                right: -100%;
                opacity: 0;
            }

            20% {
                right: 50%;
                transform: translate(50%, -50%);
                opacity: 1;
            }

            80% {
                right: 50%;
                transform: translate(50%, -50%);
                opacity: 1;
            }

            100% {
                right: 150%;
                opacity: 0;
            }
        }
    </style>
    <script>
        document.getElementById('contactForm').addEventListener('submit', function (event) {
            event.preventDefault();

            // 获取表单数据
            const messageText = document.getElementById('message').value;

            // 创建飘过的消息
            const floatingDiv = document.createElement('div');
            floatingDiv.className = 'floating-message';
            floatingDiv.textContent = "您的留言" + messageText + "发送成功!";
            document.body.appendChild(floatingDiv);

            // 3秒后移除飘过的消息
            setTimeout(() => {
                floatingDiv.remove();
            }, 3000);

            // 重置表单
            this.reset();
        });
    </script>
</body>

</html>